home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
dev
/
gcc
/
libnixV1_0.lha
/
gnu
/
libnix-sources.lha
/
examples
/
helloworld.c
next >
Wrap
C/C++ Source or Header
|
1995-01-22
|
514b
|
21 lines
#include <dos/dos.h>
#include <workbench/workbench.h>
#include <inline/exec.h>
#include <inline/dos.h>
int __nocommandline=1; /* Disable commandline parsing */
int __initlibraries=0; /* Disable auto-library-opening */
struct DosLibrary *DOSBase=NULL;
extern struct WBStartup *_WBenchMsg;
int main(void)
{ if(_WBenchMsg==NULL)
{ if((DOSBase=(struct DosLibrary *)OpenLibrary("dos.library",33))!=NULL)
{ Write(Output(),"Hello world\n",12);
CloseLibrary((struct Library *)DOSBase); } }
return 0;
}